import Layout from '../../views/layout/Layout'

// export const constantRouterMap = {
//   name: 'auth',
//   path: '/diagnosis',
//   redirect: '/diagnosis/index',
//   equType:'jtt',
//   component: Layout,
//   meta: { title: '焦炭塔', icon: 'user', roles: ['system', 'admin'] },
//   children: [
//     {
//       path: 'index1',
//       name: 'index1',
//       // component: () => import('@/views/modules/prediction/index'),
//       component: () => import('@/views/modules/monitor/indexPage/index'),
//       meta: { title: '测试页面', icon: '数据看板', roles: ['system', 'admin'] }
//     },

//     {
//       path: 'index2',
//       name: 'index2',
//       // component: () => import('@/views/modules/prediction/index'),
//       component: () => import('@/views/modules/monitor/index'),
//       meta: { title: '数据上云', icon: '数据看板', roles: ['system', 'admin'] }
//     },
//     {
//       path: 'diagnosis',
//       name: 'diagnosis',
//       component: () => import('@/views/modules/diagnosis/index'),
//       meta: { title: '状态诊断', icon: 'international', roles: ['system', 'admin'] }
//     }
//   ]
// }

// export default constantRouterMap

export default [
  {
    name: 'auth',
    path: '/diagnosis',
    redirect: '/diagnosis/index',
    equType: 'jtt',
    component: Layout,
    meta: { title: '焦炭塔', icon: 'user', roles: ['system', 'admin'] },
    children: [
      {
        path: 'dataCloud',
        name: 'dataCloud',
        // component: () => import('@/views/modules/prediction/index'),
        component: () => import('@/views/modules/monitor/indexPage/index'),
        meta: { title: '数据上云', icon: '数据看板', roles: ['system', 'admin'] }
      },
    ]
  },
  {
    name: 'auth',
    path: '/diagnosisMonitor',
    redirect: '/diagnosisMonitor/index',
    equType: 'jtt',
    component: Layout,
    meta: { title: '数据仓储', icon: 'user', roles: ['system', 'admin'] },
    children: [
      {
        path: 'strain',
        name: 'strain',
        // component: () => import('@/views/modules/prediction/index'),
        component: () => import('@/views/modules/monitor/strainPage/index'),
        meta: { title: '应力监测', icon: '数据看板', roles: ['system', 'admin'] }
      },
      {
        path: 'temperature',
        name: 'temperature',
        // component: () => import('@/views/modules/prediction/index'),
        component: () => import('@/views/modules/monitor/temperaturePage/index'),
        meta: { title: '温度监测', icon: '数据看板', roles: ['system', 'admin'] }
      },
      {
        path: 'vibration',
        name: 'vibration',
        // component: () => import('@/views/modules/prediction/index'),
        component: () => import('@/views/modules/monitor/vibrationPage/index'),
        meta: { title: '振动监测', icon: '数据看板', roles: ['system', 'admin'] }
      },
      {
        path: 'slope',
        name: 'slope',
        // component: () => import('@/views/modules/prediction/index'),
        component: () => import('@/views/modules/monitor/slopePage/index'),
        meta: { title: '倾斜监测', icon: '数据看板', roles: ['system', 'admin'] }
      },
    ]
  },
  // {
  //   name: 'auth',
  //   path: '/diagnosis1',
  //   // redirect: '/diagnosis1',
  //   equType: 'jtt',
  //   component: Layout,
  //   meta: { title: '焦炭塔', icon: 'user', roles: ['system', 'admin'] },
  //   children: [
  //     {
  //       path: 'dataCloud',
  //       name: 'dataCloud',
  //       // component: () => import('@/views/modules/prediction/index'),
  //       component: () => import('@/views/modules/monitor/index'),
  //       meta: { title: '数据上云', icon: '数据看板', roles: ['system', 'admin'] }
  //     },
  //   ]
  // },
]
